import request from '@/utils/request';

// 用户登录
export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  });
}

// 获取用户信息
export function getUserInfo(id) {
  return request({
    url: `/user/selectUserById`,
    method: 'get',
    params: { id }
  });
} 